package org.lisa.crm.controller.customer;

import org.lisa.crm.framework.context.BaseController;
import org.lisa.crm.model.BaseQuery;
import org.lisa.crm.service.CustomerRepriService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * Created by admin on 2018/2/4.
 */

/*
    暂缓流失列表
 */
@Controller
@RequestMapping("/customer_repri")
public class CustomerRepriController extends BaseController{

    @Autowired
    private CustomerRepriService customerRepriService;

    /*
    暂缓流失列表 列表展示
     */
    @RequestMapping("/customerReprievesByLossId")
    @ResponseBody
    public Map<String,Object> customerReprievesByLossId(int lossId,@RequestParam(defaultValue = "1") Integer page,
                                                        @RequestParam(defaultValue = "10") Integer rows){

        return customerRepriService.customerReprievesByLossId(lossId,page,rows);

    }

}
